<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>eRPC API Reference: erpc_basic_codec.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">eRPC API Reference
   &#160;<span id="projectnumber">Rev. 1.7.2</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('erpc__basic__codec_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">erpc_basic_codec.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="erpc__basic__codec_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016-2017 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef _EMBEDDED_RPC__BASIC_SERIALIZATION_H_</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define _EMBEDDED_RPC__BASIC_SERIALIZATION_H_</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="erpc__codec_8h.html">erpc_codec.h</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;new&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// Classes</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceerpc.html">erpc</a> {</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="erpc__basic__codec_8h.html#a21a4abaef5b1d4080cc65043a9ccd89f">   30</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="erpc__basic__codec_8h.html#a21a4abaef5b1d4080cc65043a9ccd89f">_null_flag</a></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;{</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    kNotNull = 0,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    kIsNull</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;};</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classerpc_1_1_basic_codec.html">   41</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpc_1_1_basic_codec.html">BasicCodec</a> : <span class="keyword">public</span> <a class="code" href="classerpc_1_1_codec.html">Codec</a></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classerpc_1_1_basic_codec.html#a548211f98d9af26e1776e2193cf58d6e">   44</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="classerpc_1_1_basic_codec.html#a548211f98d9af26e1776e2193cf58d6e">kBasicCodecVersion</a>; </div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="classerpc_1_1_basic_codec.html">BasicCodec</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    : <a class="code" href="classerpc_1_1_codec.html">Codec</a>()</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    {</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    }</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#ac470f37a771427cbfac97ab0283e9181">startWriteMessage</a>(<a class="code" href="erpc__codec_8h.html#a7116f64fb1351d72417155cfed485478">message_type_t</a> type, uint32_t service, uint32_t request, uint32_t sequence);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a25e2b6cb85c37518be6148f54cbd01e0">writeData</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *value, uint32_t length);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(<span class="keywordtype">bool</span> value);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(int8_t value);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(int16_t value);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(int32_t value);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(int64_t value);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(uint8_t value);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(uint16_t value);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(uint32_t value);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(uint64_t value);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(<span class="keywordtype">float</span> value);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">write</a>(<span class="keywordtype">double</span> value);</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a502e1325f3051079c7e19dda25e7dd65">writePtr</a>(uintptr_t value);</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a7bb982495470fdc4da1eab2883371a18">writeString</a>(uint32_t length, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a6456b4d7a1e7944f60d6baf1d33b2281">writeBinary</a>(uint32_t length, <span class="keyword">const</span> uint8_t *value);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a7866b1ea6e2b89a373eddd3939d9e6f3">startWriteList</a>(uint32_t length);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a75fc57134ce77a3949c1470b1243f871">startWriteUnion</a>(int32_t discriminator);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a45a74c033c173b85096a8cd641841560">writeNullFlag</a>(<span class="keywordtype">bool</span> isNull);</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a45de8c72bcbb8611db98f83480104128">writeCallback</a>(arrayOfFunPtr callbacks, uint8_t callbacksCount, funPtr callback);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a45de8c72bcbb8611db98f83480104128">writeCallback</a>(funPtr callback1, funPtr callback2);</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8edbc2ad42055a8c17083b9f2da3248e">startReadMessage</a>(<a class="code" href="erpc__codec_8h.html#a7116f64fb1351d72417155cfed485478">message_type_t</a> *type, uint32_t *service, uint32_t *request, uint32_t *sequence);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#af12b78761da78e9f140379972ca0cf86">readData</a>(<span class="keywordtype">void</span> *value, uint32_t length);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(<span class="keywordtype">bool</span> *value);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(int8_t *value);</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(int16_t *value);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(int32_t *value);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(int64_t *value);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(uint8_t *value);</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(uint16_t *value);</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(uint32_t *value);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(uint64_t *value);</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(<span class="keywordtype">float</span> *value);</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">read</a>(<span class="keywordtype">double</span> *value);</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a3bb94b2429f248ad6e3a357d25318404">readPtr</a>(uintptr_t *value);</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aefe3fd8293738dd1f863c786e069e2d9">readString</a>(uint32_t *length, <span class="keywordtype">char</span> **value);</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aef4a3aaa7bbd74c412bdb42c9468e777">readBinary</a>(uint32_t *length, uint8_t **value);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a286e2bda535cc3d1ef8931c9eb493a1d">startReadList</a>(uint32_t *length);</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#ae007d4c166a39f39111896e6fe01cb32">startReadUnion</a>(int32_t *discriminator);</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#a000e06e1dc72a3439c74792d40d61f01">readNullFlag</a>(<span class="keywordtype">bool</span> *isNull);</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aef6e72c11eeca1cff3ec7cca6bcfa400">readCallback</a>(arrayOfFunPtr callbacks, uint8_t callbacksCount, funPtr *callback);</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec.html#aef6e72c11eeca1cff3ec7cca6bcfa400">readCallback</a>(funPtr callbacks1, funPtr *callback2);</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;};</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;</div><div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="classerpc_1_1_basic_codec_factory.html">  377</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpc_1_1_basic_codec_factory.html">BasicCodecFactory</a> : <span class="keyword">public</span> <a class="code" href="classerpc_1_1_codec_factory.html">CodecFactory</a></div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;{</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="classerpc_1_1_basic_codec_factory.html#ab69d369aa84155511b96f902cdcb1496">  385</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classerpc_1_1_basic_codec.html">BasicCodec</a> *<a class="code" href="classerpc_1_1_basic_codec_factory.html#ab69d369aa84155511b96f902cdcb1496">create</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <span class="keyword">new</span> (std::nothrow) <a class="code" href="classerpc_1_1_basic_codec.html">BasicCodec</a>; }</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;</div><div class="line"><a name="l00392"></a><span class="lineno"><a class="line" href="classerpc_1_1_basic_codec_factory.html#a9f3929fe7d4549ba1399fc18e8a9cc3a">  392</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classerpc_1_1_basic_codec_factory.html#a9f3929fe7d4549ba1399fc18e8a9cc3a">dispose</a>(<a class="code" href="classerpc_1_1_codec.html">Codec</a> *codec) { <span class="keyword">delete</span> codec; }</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;};</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;} <span class="comment">// namespace erpc</span></div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;<span class="preprocessor">#endif // _EMBEDDED_RPC__BASIC_SERIALIZATION_H_</span></div><div class="ttc" id="erpc__codec_8h_html_a7116f64fb1351d72417155cfed485478"><div class="ttname"><a href="erpc__codec_8h.html#a7116f64fb1351d72417155cfed485478">erpc::message_type_t</a></div><div class="ttdeci">message_type_t</div><div class="ttdoc">Types of messages that can be encoded. </div><div class="ttdef"><b>Definition:</b> erpc_codec.h:33</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_aef4a3aaa7bbd74c412bdb42c9468e777"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#aef4a3aaa7bbd74c412bdb42c9468e777">erpc::BasicCodec::readBinary</a></div><div class="ttdeci">virtual void readBinary(uint32_t *length, uint8_t **value)</div><div class="ttdoc">Prototype for read binary value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:282</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_factory_html_ab69d369aa84155511b96f902cdcb1496"><div class="ttname"><a href="classerpc_1_1_basic_codec_factory.html#ab69d369aa84155511b96f902cdcb1496">erpc::BasicCodecFactory::create</a></div><div class="ttdeci">virtual BasicCodec * create(void)</div><div class="ttdoc">Return created codec. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.h:385</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a3bb94b2429f248ad6e3a357d25318404"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a3bb94b2429f248ad6e3a357d25318404">erpc::BasicCodec::readPtr</a></div><div class="ttdeci">virtual void readPtr(uintptr_t *value)</div><div class="ttdoc">Prototype for read uintptr value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:264</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a7bb982495470fdc4da1eab2883371a18"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a7bb982495470fdc4da1eab2883371a18">erpc::BasicCodec::writeString</a></div><div class="ttdeci">virtual void writeString(uint32_t length, const char *value)</div><div class="ttdoc">Prototype for write string value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:110</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a286e2bda535cc3d1ef8931c9eb493a1d"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a286e2bda535cc3d1ef8931c9eb493a1d">erpc::BasicCodec::startReadList</a></div><div class="ttdeci">virtual void startReadList(uint32_t *length)</div><div class="ttdoc">Prototype for start read list. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:309</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a45de8c72bcbb8611db98f83480104128"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a45de8c72bcbb8611db98f83480104128">erpc::BasicCodec::writeCallback</a></div><div class="ttdeci">virtual void writeCallback(arrayOfFunPtr callbacks, uint8_t callbacksCount, funPtr callback)</div><div class="ttdoc">Writes an order ID of callback function. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:141</div></div>
<div class="ttc" id="classerpc_1_1_codec_html"><div class="ttname"><a href="classerpc_1_1_codec.html">erpc::Codec</a></div><div class="ttdoc">Abstract serialization encoder/decoder interface. </div><div class="ttdef"><b>Definition:</b> erpc_codec.h:50</div></div>
<div class="ttc" id="erpc__basic__codec_8h_html_a21a4abaef5b1d4080cc65043a9ccd89f"><div class="ttname"><a href="erpc__basic__codec_8h.html#a21a4abaef5b1d4080cc65043a9ccd89f">erpc::_null_flag</a></div><div class="ttdeci">_null_flag</div><div class="ttdoc">Values of the uint8 flag prefixing nullable values. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.h:30</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_aef6e72c11eeca1cff3ec7cca6bcfa400"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#aef6e72c11eeca1cff3ec7cca6bcfa400">erpc::BasicCodec::readCallback</a></div><div class="ttdeci">virtual void readCallback(arrayOfFunPtr callbacks, uint8_t callbacksCount, funPtr *callback)</div><div class="ttdoc">Read an callback function id and return address of callback function. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:335</div></div>
<div class="ttc" id="erpc__codec_8h_html"><div class="ttname"><a href="erpc__codec_8h.html">erpc_codec.h</a></div></div>
<div class="ttc" id="classerpc_1_1_codec_factory_html"><div class="ttname"><a href="classerpc_1_1_codec_factory.html">erpc::CodecFactory</a></div><div class="ttdoc">Abstract interface for codec factory. </div><div class="ttdef"><b>Definition:</b> erpc_codec.h:420</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_factory_html_a9f3929fe7d4549ba1399fc18e8a9cc3a"><div class="ttname"><a href="classerpc_1_1_basic_codec_factory.html#a9f3929fe7d4549ba1399fc18e8a9cc3a">erpc::BasicCodecFactory::dispose</a></div><div class="ttdeci">virtual void dispose(Codec *codec)</div><div class="ttdoc">Dispose codec. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.h:392</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a8bcc22f1815f0881b555bd8ac4a2d3b4"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a8bcc22f1815f0881b555bd8ac4a2d3b4">erpc::BasicCodec::read</a></div><div class="ttdeci">virtual void read(bool *value)</div><div class="ttdoc">Prototype for read boolean value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:204</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a75fc57134ce77a3949c1470b1243f871"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a75fc57134ce77a3949c1470b1243f871">erpc::BasicCodec::startWriteUnion</a></div><div class="ttdeci">virtual void startWriteUnion(int32_t discriminator)</div><div class="ttdoc">Prototype for start write union. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:130</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_aa5c809aed676e5b6a372991198c56c71"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#aa5c809aed676e5b6a372991198c56c71">erpc::BasicCodec::write</a></div><div class="ttdeci">virtual void write(bool value)</div><div class="ttdoc">Prototype for write boolean value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:45</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_af12b78761da78e9f140379972ca0cf86"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#af12b78761da78e9f140379972ca0cf86">erpc::BasicCodec::readData</a></div><div class="ttdeci">virtual void readData(void *value, uint32_t length)</div><div class="ttdoc">Prototype for read data stream. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:189</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html"><div class="ttname"><a href="classerpc_1_1_basic_codec.html">erpc::BasicCodec</a></div><div class="ttdoc">Simple binary serialization format. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.h:41</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a548211f98d9af26e1776e2193cf58d6e"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a548211f98d9af26e1776e2193cf58d6e">erpc::BasicCodec::kBasicCodecVersion</a></div><div class="ttdeci">static const uint32_t kBasicCodecVersion</div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.h:44</div></div>
<div class="ttc" id="namespaceerpc_html"><div class="ttname"><a href="namespaceerpc.html">erpc</a></div><div class="ttdef"><b>Definition:</b> erpc_arbitrated_client_manager.h:25</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a000e06e1dc72a3439c74792d40d61f01"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a000e06e1dc72a3439c74792d40d61f01">erpc::BasicCodec::readNullFlag</a></div><div class="ttdeci">virtual void readNullFlag(bool *isNull)</div><div class="ttdoc">Reads a flag indicating whether the next value is null. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:325</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_factory_html"><div class="ttname"><a href="classerpc_1_1_basic_codec_factory.html">erpc::BasicCodecFactory</a></div><div class="ttdoc">Basic codec factory implements functions from codec factory. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.h:377</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a502e1325f3051079c7e19dda25e7dd65"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a502e1325f3051079c7e19dda25e7dd65">erpc::BasicCodec::writePtr</a></div><div class="ttdeci">virtual void writePtr(uintptr_t value)</div><div class="ttdoc">Prototype for write uintptr value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:102</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_ac470f37a771427cbfac97ab0283e9181"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#ac470f37a771427cbfac97ab0283e9181">erpc::BasicCodec::startWriteMessage</a></div><div class="ttdeci">virtual void startWriteMessage(message_type_t type, uint32_t service, uint32_t request, uint32_t sequence)</div><div class="ttdoc">Prototype for write header of message. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:21</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_ae007d4c166a39f39111896e6fe01cb32"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#ae007d4c166a39f39111896e6fe01cb32">erpc::BasicCodec::startReadUnion</a></div><div class="ttdeci">virtual void startReadUnion(int32_t *discriminator)</div><div class="ttdoc">Prototype for start read union. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:319</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_aefe3fd8293738dd1f863c786e069e2d9"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#aefe3fd8293738dd1f863c786e069e2d9">erpc::BasicCodec::readString</a></div><div class="ttdeci">virtual void readString(uint32_t *length, char **value)</div><div class="ttdoc">Prototype for read string value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:277</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a8edbc2ad42055a8c17083b9f2da3248e"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a8edbc2ad42055a8c17083b9f2da3248e">erpc::BasicCodec::startReadMessage</a></div><div class="ttdeci">virtual void startReadMessage(message_type_t *type, uint32_t *service, uint32_t *request, uint32_t *sequence)</div><div class="ttdoc">Prototype for read header of message. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:169</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a6456b4d7a1e7944f60d6baf1d33b2281"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a6456b4d7a1e7944f60d6baf1d33b2281">erpc::BasicCodec::writeBinary</a></div><div class="ttdeci">virtual void writeBinary(uint32_t length, const uint8_t *value)</div><div class="ttdoc">Prototype for write binary value. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:116</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a25e2b6cb85c37518be6148f54cbd01e0"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a25e2b6cb85c37518be6148f54cbd01e0">erpc::BasicCodec::writeData</a></div><div class="ttdeci">virtual void writeData(const void *value, uint32_t length)</div><div class="ttdoc">Prototype for write data stream. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:30</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a7866b1ea6e2b89a373eddd3939d9e6f3"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a7866b1ea6e2b89a373eddd3939d9e6f3">erpc::BasicCodec::startWriteList</a></div><div class="ttdeci">virtual void startWriteList(uint32_t length)</div><div class="ttdoc">Prototype for start write list. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:124</div></div>
<div class="ttc" id="classerpc_1_1_basic_codec_html_a45a74c033c173b85096a8cd641841560"><div class="ttname"><a href="classerpc_1_1_basic_codec.html#a45a74c033c173b85096a8cd641841560">erpc::BasicCodec::writeNullFlag</a></div><div class="ttdeci">virtual void writeNullFlag(bool isNull)</div><div class="ttdoc">Writes a flag indicating whether the next value is null. </div><div class="ttdef"><b>Definition:</b> erpc_basic_codec.cpp:136</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">&copy; 2016 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
